/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2023-11-18 22:59:17
 */

//   酒店-品牌

import request from '@projectName/utils/request'

export function getEnums(data) {
  return request({
    url: '/diandi_place/place/brand/enums',
    method: 'get',
    params: data
  })
}

export function brandIndex(data) {
  return request({
    url: '/diandi_place/place/brand/index',
    method: 'get',
    params: data
  })
}

export function brandView(id) {
  return request({
    url: `/diandi_place/place/brand/view/${id}`,
    method: 'get'
  })
}

export function brandCreate(data) {
  return request({
    url: '/diandi_place/place/brand/create',
    method: 'post',
    data: data
  })
}

export function brandUpdate(data) {
  return request({
    url: `/diandi_place/place/brand/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function brandDelete(id) {
  return request({
    url: `/diandi_place/place/brand/delete/${id}`,
    method: 'delete'
  })
}

export function brandInit(data) {
  return request({
    url: '/diandi_place/place/brand/init',
    method: 'get',
    data: data
  })
}

